package com.purax.pms.bean.bo;


import com.purax.pms.common.bo.BaseBo;

import java.util.List;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author alex
 */

public class SysRole extends BaseBo<Long> {

    /**
     * 角色类型
     *
     * 10-系统角色 20-自定义角色
     */
    private String type;

    /**
     * 名称
     */
    private String name;

    /**
     * 角色编码
     *  唯一
     */
    private String code;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 状态 0启用 2:禁用
     */
    private Boolean state;

    /**
     * 内置角色
     *  不允许改动
     */
    private Boolean readonly;


    /**
     * 拥有的资源
     */
    private List<SysResource> sysResources;

    /**
     * 对应的用户
     */
    private List<SysUser> sysUsers;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }

    public Boolean getReadonly() {
        return readonly;
    }

    public void setReadonly(Boolean readonly) {
        this.readonly = readonly;
    }

    public List<SysResource> getSysResources() {
        return sysResources;
    }

    public void setSysResources(List<SysResource> sysResources) {
        this.sysResources = sysResources;
    }

    public List<SysUser> getSysUsers() {
        return sysUsers;
    }

    public void setSysUsers(List<SysUser> sysUsers) {
        this.sysUsers = sysUsers;
    }
}
